package com.shxc.smarttrade.old.bean;

import java.util.List;

/**
 * Created by jcdev1 on 2017/7/26.
 */

public class MasterTrade extends ErrorStatus {

    /**
     * data : {"trades":[{"ticket":4326129,"openPrice":1257.83,"closePrice":1253.86,"symbol":"XAUUSD","symbolCn":"黄金","cmd":1,"cmdName":"买跌","profit":27.79,"swaps":0,"commission":0,"positionTime":13430,"positionTimeDesc":null,"points":397,"passedTime":139063,"passedTimeDesc":null,"closeType":0,"closeTypeName":"手动平仓"},{"ticket":4326746,"openPrice":1256.86,"closePrice":1253.86,"symbol":"XAUUSD","symbolCn":"黄金","cmd":1,"cmdName":"买跌","profit":21,"swaps":0,"commission":0,"positionTime":14259,"positionTimeDesc":null,"points":300,"passedTime":139064,"passedTimeDesc":null,"closeType":0,"closeTypeName":"手动平仓"},{"ticket":4326797,"openPrice":1256.97,"closePrice":1253.95,"symbol":"XAUUSD","symbolCn":"黄金","cmd":1,"cmdName":"买跌","profit":21.14,"swaps":0,"commission":0,"positionTime":14165,"positionTimeDesc":null,"points":302,"passedTime":139065,"passedTimeDesc":null,"closeType":0,"closeTypeName":"手动平仓"},{"ticket":4326127,"openPrice":1256.27,"closePrice":1253.86,"symbol":"XAUUSD","symbolCn":"黄金","cmd":1,"cmdName":"买跌","profit":16.87,"swaps":0,"commission":0,"positionTime":17900,"positionTimeDesc":null,"points":241,"passedTime":139119,"passedTimeDesc":null,"closeType":0,"closeTypeName":"手动平仓"},{"ticket":4277022,"openPrice":1243.03,"closePrice":1244.77,"symbol":"XAUUSD","symbolCn":"黄金","cmd":0,"cmdName":"买涨","profit":10.13,"swaps":-0.31,"commission":0,"positionTime":90223,"positionTimeDesc":null,"points":174,"passedTime":490846,"passedTimeDesc":null,"closeType":0,"closeTypeName":"手动平仓"},{"ticket":4278144,"openPrice":1240.87,"closePrice":1244.65,"symbol":"XAUUSD","symbolCn":"黄金","cmd":0,"cmdName":"买涨","profit":44.75,"swaps":-0.61,"commission":0,"positionTime":87375,"positionTimeDesc":null,"points":378,"passedTime":490851,"passedTimeDesc":null,"closeType":0,"closeTypeName":"手动平仓"},{"ticket":4278492,"openPrice":1239.72,"closePrice":1243.01,"symbol":"XAUUSD","symbolCn":"黄金","cmd":0,"cmdName":"买涨","profit":19.43,"swaps":-0.31,"commission":0,"positionTime":86798,"positionTimeDesc":null,"points":329,"passedTime":490868,"passedTimeDesc":null,"closeType":0,"closeTypeName":"手动平仓"},{"ticket":4278118,"openPrice":1236.58,"closePrice":1236.91,"symbol":"XAUUSD","symbolCn":"黄金","cmd":0,"cmdName":"买涨","profit":3.96,"swaps":0,"commission":0,"positionTime":16062,"positionTimeDesc":null,"points":33,"passedTime":500043,"passedTimeDesc":null,"closeType":0,"closeTypeName":"手动平仓"},{"ticket":4261045,"openPrice":1237.93,"closePrice":1239.51,"symbol":"XAUUSD","symbolCn":"黄金","cmd":0,"cmdName":"买涨","profit":9.48,"swaps":0,"commission":0,"positionTime":1737,"positionTimeDesc":null,"points":158,"passedTime":671734,"passedTimeDesc":null,"closeType":0,"closeTypeName":"手动平仓"},{"ticket":4250658,"openPrice":1234.75,"closePrice":1236.74,"symbol":"XAUUSD","symbolCn":"黄金","cmd":0,"cmdName":"买涨","profit":11.94,"swaps":0,"commission":0,"positionTime":1995,"positionTimeDesc":null,"points":199,"passedTime":711386,"passedTimeDesc":null,"closeType":0,"closeTypeName":"手动平仓"}]}
     */

    private DataBean data;

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        private List<TradesBean> trades;

        public List<TradesBean> getTrades() {
            return trades;
        }

        public void setTrades(List<TradesBean> trades) {
            this.trades = trades;
        }

        public static class TradesBean {
            /**
             * ticket : 4326129
             * openPrice : 1257.83
             * closePrice : 1253.86
             * symbol : XAUUSD
             * symbolCn : 黄金
             * cmd : 1
             * cmdName : 买跌
             * profit : 27.79
             * swaps : 0.0
             * commission : 0.0
             * positionTime : 13430
             * positionTimeDesc : null
             * points : 397
             * passedTime : 139063
             * passedTimeDesc : null
             * closeType : 0
             * closeTypeName : 手动平仓
             */

            private String ticket;
            private double openPrice;
            private double closePrice;
            private String symbol;
            private String symbolCn;
            private int cmd;
            private String cmdName;
            private double profit;
            private double swaps;
            private double commission;
            private long positionTime;
            private Object positionTimeDesc;
            private int points;
            private long passedTime;
            private Object passedTimeDesc;
            private int closeType;
            private String closeTypeName;

            public String getTicket() {
                return ticket;
            }

            public void setTicket(String ticket) {
                this.ticket = ticket;
            }

            public double getOpenPrice() {
                return openPrice;
            }

            public void setOpenPrice(double openPrice) {
                this.openPrice = openPrice;
            }

            public double getClosePrice() {
                return closePrice;
            }

            public void setClosePrice(double closePrice) {
                this.closePrice = closePrice;
            }

            public String getSymbol() {
                return symbol;
            }

            public void setSymbol(String symbol) {
                this.symbol = symbol;
            }

            public String getSymbolCn() {
                return symbolCn;
            }

            public void setSymbolCn(String symbolCn) {
                this.symbolCn = symbolCn;
            }

            public int getCmd() {
                return cmd;
            }

            public void setCmd(int cmd) {
                this.cmd = cmd;
            }

            public String getCmdName() {
                return cmdName;
            }

            public void setCmdName(String cmdName) {
                this.cmdName = cmdName;
            }

            public double getProfit() {
                return profit;
            }

            public void setProfit(double profit) {
                this.profit = profit;
            }

            public double getSwaps() {
                return swaps;
            }

            public void setSwaps(double swaps) {
                this.swaps = swaps;
            }

            public double getCommission() {
                return commission;
            }

            public void setCommission(double commission) {
                this.commission = commission;
            }

            public long getPositionTime() {
                return positionTime;
            }

            public void setPositionTime(long positionTime) {
                this.positionTime = positionTime;
            }

            public Object getPositionTimeDesc() {
                return positionTimeDesc;
            }

            public void setPositionTimeDesc(Object positionTimeDesc) {
                this.positionTimeDesc = positionTimeDesc;
            }

            public int getPoints() {
                return points;
            }

            public void setPoints(int points) {
                this.points = points;
            }

            public long getPassedTime() {
                return passedTime;
            }

            public void setPassedTime(long passedTime) {
                this.passedTime = passedTime;
            }

            public Object getPassedTimeDesc() {
                return passedTimeDesc;
            }

            public void setPassedTimeDesc(Object passedTimeDesc) {
                this.passedTimeDesc = passedTimeDesc;
            }

            public int getCloseType() {
                return closeType;
            }

            public void setCloseType(int closeType) {
                this.closeType = closeType;
            }

            public String getCloseTypeName() {
                return closeTypeName;
            }

            public void setCloseTypeName(String closeTypeName) {
                this.closeTypeName = closeTypeName;
            }
        }
    }
}
